<h2 class="primary">Points history</h2>
 
<div class="order_history">
Your have earned <h1 class="h1">{{$totalEarn}}</h1> points
 <h3>Your have earned <span>{{$totalEarn}} points  </span></h3>
 <h3>Your have costed  <span>{{$totalCost}} points  </span></h3>
	<div class="account_list">
		<table>
			<tr>
				<th >DATE</th>
				<th >TYPE</th>
				<th >DESC</th>
				<th >POINTS</th>
			</tr>
			{{foreach from=$history key=k item=comitem }}
			<tr>
				<td><span >{{$comitem->create_time}}</span></td> 
				<td><span >{{$comitem->record_type}}</span></td>  
				<td><span >{{$comitem->points_type}}</span></td>  
				<td><span >{{$comitem->points}}</span></td>  
			</tr>
			{{/foreach}}
		</table>
	</div>
</div>